asString

abstract fun asString(): String

Returns the XPath result represented as a string.

Throws

if the result is not of a string type (see isString)

when the document this instance belongs to is closed